import { getUserProfile } from "../../utils/asyncWx.js";



Page({
  async getUserProfile(e) {
    //使用getUserProfile获取用户信息
    //并将获取的信息放入缓存
    const { userInfo } = await getUserProfile({ desc: "获取用户信息" });
    wx.setStorageSync("userInfo", userInfo);
    wx.navigateBack({
      delta: 1
    });
      
  },
});
